Page({

  data: {
    list: [],

  },

  onLoad({ id }) {
    console.log('报修列表99', id);
    this.repairList(id)
  },
  //报修列表
  async repairList() {
    const { rows } = await wx.http.get('/repair', { current: 1, pageSize: 10 })
    this.setData({ list: rows })
    console.log('报修列表', rows);
  },

  goDetail(e) {
    console.log('报修列表id', e.mark.id);
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + e.mark.id,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
